<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 设置上边框 */
        div {
            border-top: 3px orange solid;
            border-bottom: 1px #ccc solid;
        }

        div a {
            display: inline-block;
            text-decoration: none;
            color: black;
            width: 160px;
            line-height: 60px;
            text-align: center;
        }

        div a:hover {
            background: #ccc;
            color: orange;
        }
    </style>
</head>

<body>
    <div>
        <a href="javascript:;">新浪导航</a>
        <a href="javascript:;">新浪导航</a>
        <a href="javascript:;">新浪导航</a>
        <a href="javascript:;">新浪导航</a>
    </div>
</body>

</html>